package org.example.controller;


import org.example.domain.entity.UsersS;
import org.example.domain.model.Result;
import org.example.service.IAddrUserService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/usersAddrList")
@CrossOrigin("*")
public class UserAddrController {

    private IAddrUserService iAddrUserService;

    public UserAddrController(IAddrUserService iAddrUserService) {
        this.iAddrUserService = iAddrUserService;
    }
    @RequestMapping
    public Result queryAddr(){

        return iAddrUserService.queryAllAddr();
    }

}
